import mongoose from 'mongoose'
let Schema = mongoose.Schema;
var Ids = new Schema({
    admin_id:Number,
    user_id:Number,
    api_id:Number,
    shop_id:Number,
    order_id:Number,
    img_id:Number,
    food_id:Number,
    address_id:Number,
    category_id:Number
});
const idSet = mongoose.model('idSet',Ids);
idSet.findOne({},async (err,data)=>{
    // console.log("*-------");
    // console.log(data)
    if(!data){
        let ids = new idSet({
            admin_id: 34,
            user_id: 118,
            api_id: 0,
            shop_id: 82,
            order_id: 34,
            address_id: 0,
            food_id: 20,
            img_id:74,
            category_id:0
        })
        await ids.save()
    }
})
export default idSet